package com.bjpowernode.springboot.entity;

import org.springframework.stereotype.Component;

/**
 * 注册错误信息Bean实体
 */
@SuppressWarnings("all")
@Component
public class RegisterErrorBean {

    /**
     * 定义发生错误对象的类型
     */
    static final String USERNAME = "username";
    static final String PASSWORD = "password";
    static final String CHECKCODE = "checkcode";


    /**
     * 定义发生错误的种类类型
     */
    static final String LEN_ERROR = "register info has length error"; // 输入的信息存在长度问题
    static final String VAR_ERROR = "register info has input variable error"; // 输入的信息存在类型错误
    static final String REPEAT_ERROR = "register info has exists"; // 重复
    static final String VERCODE_INPUT_ERROR = "register vercode input has error"; // 注册的二维码初始错误

    static final String NULL_INPUT_ERROR = "register info is not allowed null"; // 输入的注册信息不能为null

    static final String FORMAT_INPUT_ERROR = "register info has format error"; // 输入的注册信息存在格式问题

    static final String register_error_message = "register_error_message"; // 注册错位信息

    public RegisterErrorBean() {}; // 空构造方法


    public String getRegister_error_message() {
        return register_error_message;
    }

    public static String getVercodeInputError() {
        return VERCODE_INPUT_ERROR;
    }

    public static String getUSERNAME() {
        return USERNAME;
    }

    public static String getPASSWORD() {
        return PASSWORD;
    }

    public static String getCHECKCODE() {
        return CHECKCODE;
    }

    public static String getLenError() {
        return LEN_ERROR;
    }

    public static String getVarError() {
        return VAR_ERROR;
    }

    public static String getNullInputError() {
        return NULL_INPUT_ERROR;
    }

    public static String getFormatInputError() {
        return FORMAT_INPUT_ERROR;
    }

    public static String getRepeatError() {
        return REPEAT_ERROR;
    }
}
